package com.carkeeper.common.utils;

/**
 * 返回码
 */
public class StatusCode {

    public static final int OK=20000;//成功
    public static final int ERROR =20001;//失败
    public static final int LOGINERROR =20002;//用户名或密码错误
    public static final int ACCESSERROR =20003;//权限不足
    public static final int REMOTEERROR =20004;//远程调用失败
    public static final int REPERROR =20005;//重复操作

    public static final int PAY_STATUS_NO = 0;//待支付
    public static final int PAY_STATUS_YES = 1;//已支付

    public static final int BLOG_UNPUBLISHED=0;//未发布
    public static final int BLOG_PUBLISHED=1;//已发布


    //    0待接单 1待服务 2服务中 3服务完成 4待评价 5已完成 6已关闭
    public static final int ORDER_STATUS_WAITING_ORDER = 0;//待接单
    public static final int ORDER_STATUS_WAITING_SERVICE = 1;//待服务
    public static final int ORDER_STATUS_SERVICE_ING = 2;//服务中
    public static final int ORDER_STATUS_SERVICE_OK = 3;//服务完成
    public static final int ORDER_STATUS_WAITING_EVALUATION = 4;//待评价
    public static final int ORDER_STATUS_ORDER_OK = 5;//已完成
    public static final int ORDER_STATUS_ORDER_CLOSE = 6;//已关闭

    //类型 1 服务 2配件
    public static final int TYPE_SERVICE = 1;//服务
    public static final int TYPE_ACCESSORIES = 2;//配件

    public static final int PAY_STATUS_ERRO = 2;//支付异常
    public static final int PAY_STATUS_ROLLBACK = 3;//已撤销


    public static final int IS_DELETE_NO = 0;//未删除
    public static final int IS_DELETE_YES = 1;//已删除

    public static final int STORE_TYPE_SERVICE = 1;//汽修厂
    public static final int STORE_TYPE_ACCESSORIES = 2;//配件商

    public static final int STORE_status_NO = 0;//未审核
    public static final int STORE_status_YES = 1;//审核通过
    public static final int STORE_status_ERRO = 2;//审核拒绝

    public static final int IS_ADMIN_YES = 0;//是管理员
    public static final int IS_ADMIN_NO = 1;//不是管理员

    public static final int IS_LOCK_YES = 0;//已锁定
    public static final int IS_LOCK_NO = 1;//未锁定

    public static final int IS_PUBLISH_NO = 1;//未发布
    public static final int IS_PUBLISH_YES = 2;//已发布


    //0：平台下架，1：平台上架，2：商家上架，3：商家下架，平台下架后商家无权上架

    public static final int SERVICE_SYSTEM_DOWN = 1;//平台下架
    public static final int SERVICE_SYSTEM_UP = 2;//平台上架

    public static final int SERVICE_STORE_DOWN = 3;//商家下架
    public static final int SERVICE_STORE_UP = 4;//商家上架

}
